package com.dpwgc.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dpwgc.demo.model.Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 日志记录
 */
@Repository
@Mapper
public interface LogMapper extends BaseMapper<Log> {

    /**
     * 根据logUri获取访问记录列表
     * @param logUri 访问控制器路径
     * @return
     */
    List<Log> queryLogByUri(@Param("logUri") String logUri,
                            @Param("startPage") Integer startPage,
                            @Param("endPage") Integer endPage);

}
